import api from '../../utils/api';

Page({
  data: {
    stickersList: {},
    img: '../../static/image/day-english.jpg',
    fengmianimg: '../../static/image/dancifengmian.jpg'
  },

  onLoad: function (options) {
    this.getStickers();
  },

  getStickers() {
    const _this = this;
    wx.showLoading({
      title: '请稍后...'
    });
    api({
      url: '/User/getStickers',
      method: 'GET',
      success: function (res) {
        wx.hideLoading();
        if (res.data.data.length) {
          _this.setData({
            stickersList: res.data.data[0]
          });
        }
      }
    });
  }
})